package com.slipper.system.organization.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.slipper.system.organization.bo.OrganizationBO;

/**
 * 组织机构信息表
 */
public interface OrganizationDao {
    
    int insert(OrganizationBO bo);
    
    int update(OrganizationBO bo);
    
    int delete(OrganizationBO bo);

    OrganizationBO queryBy(@Param("id") String id);
    
    List<OrganizationBO> queryList(OrganizationBO bo);

    List<OrganizationBO> queryByEmployeeId(String employeeId);

    int queryCntBy(@Param("parentId") String parentId, @Param("name") String name);

    OrganizationBO queryByName(OrganizationBO bo);

    int insertList(@Param("list") List<OrganizationBO> list);

    int updateValid(OrganizationBO bo);

    Map<String, Object> queryMapData(String id);

    List<OrganizationBO> queryChildren(@Param("parentIds") String[] parentIds);
}
